package com.item.service;

import com.item.dao.BCategoryMapper;
import com.item.dao.model.BCategory;
import com.item.dao.model.BCategoryExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BCategoryService {
    @Autowired
    private BCategoryMapper bCategoryMapper;

    private static final Logger logger = Logger.getLogger(BCategoryService.class);

    public int countByExample(BCategoryExample example) {
        return this.bCategoryMapper.countByExample(example);
    }

    public BCategory selectByPrimaryKey(String id) {
        return this.bCategoryMapper.selectByPrimaryKey(id);
    }

    public List<BCategory> selectByExample(BCategoryExample example) {
        return this.bCategoryMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.bCategoryMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(BCategory record) {
        return this.bCategoryMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BCategory record) {
        return this.bCategoryMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(BCategoryExample example) {
        return this.bCategoryMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(BCategory record, BCategoryExample example) {
        return this.bCategoryMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(BCategory record, BCategoryExample example) {
        return this.bCategoryMapper.updateByExample(record, example);
    }

    public int insert(BCategory record) {
        return this.bCategoryMapper.insert(record);
    }

    public int insertSelective(BCategory record) {
        return this.bCategoryMapper.insertSelective(record);
    }
}